package com.cbg.es.entity;

import com.shuyuwl.core.domain.AbstractBaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

import javax.persistence.*;

/**
 * ES表备份
 *
 * @author wangjuzheng
 * @since 2019-10-16
 */
@Data
@Entity
@Table(name = "es_table")
@EqualsAndHashCode(callSuper = true)
public class EsTable extends AbstractBaseDomain implements Serializable {

	/**
	 * 表名
	 */
	@Column(name = "table_name")
	private String tableName;

	/**
	 * 表注释
	 */
	@Column(name = "table_name_cn")
	private String tableNameCn;

	/**
	 * 表显示名
	 */
	@Column(name = "table_name_alias")
	private String tableNameAlias;

	/**
	 * 排序
	 */
	@Column(name = "sort")
	private Integer sort;
}
